package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 网址对象 web_site
 * 
 * @author ruoyi
 * @date 2021-07-13
 */
public class WebSite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网址表ID pth+八位数字 */
    private String id;

    /** 序列号 xlh+八位数字 */
    @Excel(name = "序列号 xlh+八位数字")
    private String serialNum;

    /** 网站名字 */
    @Excel(name = "网站名字")
    private String webName;

    /** 网址 */
    @Excel(name = "网址")
    private String webUrl;

    /** logo地址 */
    @Excel(name = "logo地址")
    private String logoUrl;

    /** 订阅 0默认不订阅 1订阅 */
    @Excel(name = "订阅 0默认不订阅 1订阅")
    private Integer subscribe;

    /** 自建0 1第三方 */
    @Excel(name = "自建0 1第三方")
    private Integer source;

    /** 状态 0启用1 禁用 */
    @Excel(name = "状态 0启用1 禁用")
    private Integer state;

    /** 创建人userId */
    @Excel(name = "创建人userId")
    private Long appUserId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String appUserNickName;

    /** 点击数 */
    @Excel(name = "点击数")
    private Integer clickNum;

    /** 是否置顶 0否 1是 */
    @Excel(name = "是否置顶 0否 1是")
    private Integer top;

    /** 分类id */
    @Excel(name = "分类id")
    private Long cateId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String cateName;

    /** 介绍 */
    @Excel(name = "介绍")
    private String introduce;

    /** 简介 */
    @Excel(name = "简介")
    private String abstraction;

    /** 手机识别码uuid */
    @Excel(name = "手机识别码uuid")
    private String uuid;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSerialNum(String serialNum) 
    {
        this.serialNum = serialNum;
    }

    public String getSerialNum() 
    {
        return serialNum;
    }
    public void setWebName(String webName) 
    {
        this.webName = webName;
    }

    public String getWebName() 
    {
        return webName;
    }
    public void setWebUrl(String webUrl) 
    {
        this.webUrl = webUrl;
    }

    public String getWebUrl() 
    {
        return webUrl;
    }
    public void setLogoUrl(String logoUrl) 
    {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrl() 
    {
        return logoUrl;
    }
    public void setSubscribe(Integer subscribe) 
    {
        this.subscribe = subscribe;
    }

    public Integer getSubscribe() 
    {
        return subscribe;
    }
    public void setSource(Integer source) 
    {
        this.source = source;
    }

    public Integer getSource() 
    {
        return source;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setAppUserId(Long appUserId) 
    {
        this.appUserId = appUserId;
    }

    public Long getAppUserId() 
    {
        return appUserId;
    }
    public void setAppUserNickName(String appUserNickName) 
    {
        this.appUserNickName = appUserNickName;
    }

    public String getAppUserNickName() 
    {
        return appUserNickName;
    }
    public void setClickNum(Integer clickNum) 
    {
        this.clickNum = clickNum;
    }

    public Integer getClickNum() 
    {
        return clickNum;
    }
    public void setTop(Integer top) 
    {
        this.top = top;
    }

    public Integer getTop() 
    {
        return top;
    }
    public void setCateId(Long cateId) 
    {
        this.cateId = cateId;
    }

    public Long getCateId() 
    {
        return cateId;
    }
    public void setCateName(String cateName) 
    {
        this.cateName = cateName;
    }

    public String getCateName() 
    {
        return cateName;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setAbstraction(String abstraction)
    {
        this.abstraction = abstraction;
    }

    public String getAbstraction()
    {
        return abstraction;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public Date getStartTime()
    {
        return startTime;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }
    public Date getEndTime()
    {
        return endTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }
    public void setSort(Long sort) { this.sort = sort; }

    public Long getSort() { return sort; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNum", getSerialNum())
            .append("webName", getWebName())
            .append("webUrl", getWebUrl())
            .append("logoUrl", getLogoUrl())
            .append("subscribe", getSubscribe())
            .append("source", getSource())
            .append("state", getState())
            .append("appUserId", getAppUserId())
            .append("appUserNickName", getAppUserNickName())
            .append("clickNum", getClickNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("top", getTop())
            .append("cateId", getCateId())
            .append("cateName", getCateName())
            .append("introduce", getIntroduce())
            .append("abstract", getAbstraction())
            .append("uuid", getUuid())
            .append("sort", getSort())
            .toString();
    }
}
